import axios from "axios";

const instance = axios.create({
    baseURL: "/api"/* 公共地址 */,
    timeout: 5000/* 超时 */
})

instance.interceptors.request.use(
    (config) => {
        return config
    },
    (error) => {
        return Promise.reject(error)
    }
)
instance.interceptors.response.use(
    (res) => {
        return res
    },
    (error) => {
        return Promise.reject(error)
    }
)
export default instance